import request from "@/utils/request"

//一级分类数据类型
export interface chartsInfo {
    sceneId:number
    tablists:reqchartsModel[]
}
//二级分类数据类型
export interface tabwraps{
    id:number,
    name:string
    position:number;
    rankingId:number
    tabid:number
    text?:string
}
export interface reqchartsModel {
    id: number 
    name: string
    position: number
    sceneId: number
    tabwraps: tabwraps[]
}
export interface reqchartsModel2 {
    currentuid:number
    // rankList:reqRankList[]
    rankingIds:number[]
}
export interface regRankList {
    albums :regAlbums[]
    anchors:[]
    contentType :number
    count:number
    coverPath:string
    ids:[]
    rankId:Number
    shareUrl:string
    subtitle:string
    title:string
}
export interface regAlbums{
    albumSubscript:number
    albumTitle:string
    albumUrl:string
    anchorName:string
    anchorUrl:string
    categoryCode:string
    categoryId:number
    categoryTitle:string
    cover:string
    customTitle:string
    description:string
    id:number
    isPaid:boolean
    isSubscribe:boolean
    lastUpdateTrack:string
    lastUpdateTrackUri:string
    lastUptrackAtstr:string
    playCount:number
    price:string
    rankingPositionChange:number
    salepoint:string
    tagstr:string
    trackCount :number
    vipType:number
}

// 一级分类列表
export const gitRank= (sceneId:number) =>  request.get<any,any>(`/revision/rank/v4/rankTabs?sceneId=${sceneId}`) 
// 二级分类列表
export const gitRanking = (id:number) => request.get(`/revision/rank/v4/element?rankingId=${id}`)   